#include "customsqlmodel.h"

CustomSqlModel::CustomSqlModel(QObject *parent, QSqlDatabase db)
    : QSqlTableModel(parent, db)
{

}

CustomSqlModel::~CustomSqlModel()
{

}

QVariant CustomSqlModel::data(const QModelIndex &index, int role) const
{
    QVariant value = QSqlTableModel::data(index, role);
    if (Qt::TextAlignmentRole == role)
    {
        value = Qt::AlignCenter;
    }
    return value;
}
